import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { OrderEntity } from './entities/order.entity';
import { OrderItemEntity } from './entities/order-item.entity';
import { CartModule } from '../cart/shop-cart.module';
import { AddressModule } from '../address/address.module';
import { OrderService } from './order.service';
import { ProductEntity } from '../products/entities/shop-products.entity';
import { OrderController } from './order.controller';

@Module({
  imports: [TypeOrmModule.forFeature([OrderEntity, OrderItemEntity, ProductEntity]), CartModule, AddressModule],
  providers: [OrderService],
  controllers: [OrderController],
})
export class OrderModule {}
